<!DOCTYPE html>
<html>
<head>
    <title><g:layoutTitle default="Fusion" /></title>
    <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
    <link rel="stylesheet" href="${resource(dir:'css',file:'ui-lightness/jquery-ui-1.8.13.custom.css')}" />
	<g:javascript src='jquery-1.6.1.min.js'/>
	<g:javascript src='jquery-ui-1.8.13.custom.min.js'/>
    <g:layoutHead />
</head>
<body>
    <div id="spinner" class="spinner" style="display:none;">
        <img src="${resource(dir:'images',file:'spinner.gif')}" alt="${message(code:'spinner.alt',default:'Loading...')}" />
    </div>
    <div class="header">
    	<div class="blank_line"></div>
	    <div id="grailsLogo">
	    	<a href="#">
	    		<g:message code="global.app.name" />
	    	</a>
	    </div>
    	<div class="blank_line"></div>
    </div>
    <shiro:authenticated>
        <div class="nav">

            <span class="menuButton">
                <a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a>
            </span>

            <span class="menuButton">
                <a class="list" href="${createLink(controller:'tb')}"><g:message code="moc.tb.label"/></a>
            </span>

            <span class="menuButton">
                <a class="create" href="${createLink(controller:'tb', action:'create')}">
                    ${message(code: 'default.new.label', args: [message(code: 'moc.tb.label', default: 'Tb')])}
                </a>
            </span>

            <span class="menuButton"><g:link class="list" controller="adjust" action="list"><g:message code="adjust.list.label" /></g:link></span>
            <span class="menuButton"><g:link class="create" controller="adjust" action="create"><g:message code="adjust.new.label"/></g:link></span>

            <span class="menuButton">
                <g:link class="list" controller="report" action="list"><g:message code="default.report.label" /></g:link>
            </span>
        
            <div class="menuButton" style="float:right; margin-right:5px;display:inline">
                <shiro:principal/>, <g:link controller="auth" action="signOut"><g:message code="default.signOut.label"/></g:link>
            </div>

        </div>

	</shiro:authenticated>

    <g:layoutBody />

    <div class="footer">
    	<div class="blank_line"></div>
    </div>
</body>
</html>
